package com.goldwind.accompany.dao;

import com.goldwind.pojo.AccompanyService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface AccompanyMapper {
    /*总查询*/
    List<AccompanyService> selectAll();

    /*多条件查询*/
    List<AccompanyService> selectByConditions(
            @Param("gameType") String gameType,
            @Param("serviceType") String serviceType,
            @Param("minPrice") Double minPrice,
            @Param("maxPrice") Double maxPrice,
            @Param("keyword") String keyword,
            @Param("status") Integer status,
            @Param("userId") Integer userId
    );

    /*上传*/
    int insert(@Param("service") AccompanyService service);

    /*更新*/
    int update(@Param("service") AccompanyService service);

    /*删除*/
    int delete(@Param("id") int id);



}
